﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="PasswordRequest.aspx.cs" Inherits="SwenAssigment.PasswordRequest" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style5 {
            width: 137px;
        }
        .auto-style6 {
            width: 47px;
        }
        .auto-style7 {
            width: 48px;
        }
        .auto-style8 {
            width: 54px;
        }
        .auto-style9 {
            width: 445px;
        }
        .auto-style10 {
            width: 137px;
            height: 23px;
        }
        .auto-style11 {
            width: 445px;
            height: 23px;
        }
        .auto-style12 {
            height: 23px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Change Password</h1>
    <div>


        <table style="width:100%;">
            <tr>
                <td class="auto-style10">Current Password:</td>
                <td class="auto-style11">
                    <asp:TextBox ID="TextBox1" runat="server" ValidationGroup="a"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBox1" ErrorMessage="*Require" ForeColor="Red" ValidationGroup="a"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="TextBox1" ErrorMessage="*Allow only letter and number (Range 4 to 20)" ForeColor="Red" ValidationExpression="[0-9a-zA-Z]{4,20}$" ValidationGroup="a"></asp:RegularExpressionValidator>
                </td>
                <td class="auto-style12"></td>
            </tr>
            <tr>
                <td class="auto-style5">New Password:</td>
                <td class="auto-style9">
                    <asp:TextBox ID="TextBox2" runat="server" ValidationGroup="a"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TextBox2" ErrorMessage="*Require" ForeColor="Red" ValidationGroup="a"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="TextBox2" ErrorMessage="*Allow only letter and number (Range 4 to 20)" ForeColor="Red" ValidationExpression="[0-9a-zA-Z]{4,20}$" ValidationGroup="a"></asp:RegularExpressionValidator>
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style10">Comfrim New Password:</td>
                <td class="auto-style11">
                    <asp:TextBox ID="TextBox3" runat="server" ValidationGroup="a"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="TextBox3" ErrorMessage="*Require" ForeColor="Red" ValidationGroup="a"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox2" ControlToValidate="TextBox3" ErrorMessage="*Not Same" ForeColor="Red" ValidationGroup="a"></asp:CompareValidator>
                </td>
                <td class="auto-style12"></td>
            </tr>
            <tr>
                <td class="auto-style5">&nbsp;</td>
                <td class="auto-style9">&nbsp;</td>
                <td>
                    <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="Change" ValidationGroup="a" />
                </td>
            </tr>
        </table>


    </div>
</asp:Content>
